//
// Created by 董一龙 on 2022/10/15.
//

#ifndef FQUEUE_MACOS_ADAPTATION_H
#define FQUEUE_MACOS_ADAPTATION_H
#include "mmaplib/platform/platform_interface.h"

namespace fqueue {

    class macos_adaptation {
    public:
        static void *mmap(void *addr, size_t length, int prot, int flags, char const* const filename, off_t offset);
        static int munmap(void *addr, size_t length);
        static int create_file(char const*filename, size_t file_size);
        static size_t file_size(char const*filename);
        static bool exists(char const*const filename);
    };

} // fqueue

#endif //FQUEUE_MACOS_ADAPTATION_H
